<%@page import="jspPrinter.ListaLateral"%>
<%@page import="controle.*"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"-->
<html>
<head>
	<title>Arduino</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<script type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" media="screen" href="css4.css">
	<link rel="stylesheet" href="styles.css">
</head>
<body>
<% if (request.getSession().getAttribute("username") == null) response.sendRedirect("login.jsp"); %>
<!--Inicio da #tudo que engloba todo o layout da pagina.-->
<div id="tudo">

  <!--Inicio do topo do site -->
  <div id="csswebdesign">

    <h1></h1>
    
  </div>
  <!-- Fim do topo do site -->
  
  <div id="busca-menu">
     
    <!-------------------------------Inicio do menu lateral----------------------------->
    <div id="menu">
			<ul>
				<li>
				<a href="#" onclick="window.open('novo.jsp', 'Pagina', 'STATUS=NO, TOOLBAR=NO, LOCATION=NO, DIRECTORIES=NO, RESISABLE=NO, SCROLLBARS=YES, TOP=10, LEFT=10, WIDTH=500, HEIGHT=250');" class="negrito">+ Adicionar evento +</a>  
				</li>
				<li>
				<a href="#" onclick="window.open('remove.jsp', 'Pagina', 'STATUS=NO, TOOLBAR=NO, LOCATION=NO, DIRECTORIES=NO, RESISABLE=NO, SCROLLBARS=YES, TOP=10, LEFT=10, WIDTH=450, HEIGHT=550');" class="negrito">- Remover eventos -</a>  
				</li>
				<li>
				<hr/>
				</li>
							
				
				<% ListaLateral.imprimir(out, request.getSession().getAttribute("username").toString());%>
				
				<li>
				<hr/>
				</li>
				<li><a href="login.jsp"  class="anterior">&laquo; Efetuar logoff</a></li>
			</ul>  		   
		</div>
    <!------------------------------ Fim do menu lateral ------------------------------>
  </div>

 
  <!------------------------------ Inicio do corpo ------------------------------>
  <div id="corpo1">
	  <h4 class="orie"><span>Controle o Arduino</span></h4>
	  
	 <!--#############################   Aqui será inserida a função pra enviar letras ao arduino, pode ser H de high e L de low por exemplo  ###########################-->
	<form action="ArduinoServlet" method="post">
	  <p class="tab"><button type="submit" name="button" value="Acender">Acender</button></p>
	  <p class="tab"><button type="submit" name="button" value="Apagar">Apagar</button></p>
	</form>
	 
  </div>

  
  <!------------------------------ fim do corpo ----------------------------->
  <br/><br/><br/><br/><br/>
  
 <!----------------------------- Links do menu acima ----------------------------->
  <div id="navMenu3">
    <ul>

       <li> <a href="index.jsp" title="Home">Home</a> </li>
      <li> <a href="eventos.jsp" title="Eventos">Eventos</a> </li>
      <li> <a href="grafico.jsp" title="Gr&aacute;ficos">Gr&aacute;ficos</a> </li>
      <li> <a href="arduino.jsp" title="Arduino">Arduino</a> </li>
    </ul>
  </div>
    <!----------------------------- fim dos Links do menu acima ----------------------------->
  
  <!-- As DIVs a seguir podem ser usadas para inserir imagens adicionais -->
  <div id="extra1"><span></span></div>
 
 </div>
<!--Fim da #tudo que engloba toda a pagina -->


</body>
</html>